package o;

import android.content.Context;
import android.text.TextUtils;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean.e;

public class eyo {
    private String ˊ = ContentManager.getInstant().getContext().getString(exp$f.ʽˋ);
    private int ˋ = 1;
    private String ˎ = ContentManager.getInstant().getContext().getString(exp$f.ˏͺ);
    private String ˏ = ContentManager.getInstant().getContext().getString(exp$f.ॱʿ);
    private boolean ॱ = false;
    private boolean ॱॱ = true;

    public static eyo ॱ(BaseRequest o_cvu, ResponseBean responseBean, String str) {
        if (o_cvu == null || responseBean == null) {
            return new eyo();
        }
        if (responseBean.getResponseCode() == 1 && (responseBean.getErrCause() == e.ˊ || responseBean.getErrCause() == e.ˏ)) {
            Logger.e("LoadingEvent", "create event, response msg error, method:" + o_cvu.getMethod_() + ", url:" + o_cvu.getUrl());
            responseBean.setResponseCode(4);
        }
        return ˋ(responseBean.getResponseCode(), responseBean.getRtnCode_(), str);
    }

    public static eyo ˋ(int i, int i2, String str) {
        eyo o_eyo = new eyo();
        Context ˋ = ContentManager.getInstant().getContext();
        if (i == 0 && i2 == 0) {
            o_eyo.ˋ(0);
            o_eyo.ˋ("");
            o_eyo.ॱ("");
        } else if (i == 3 || !doo.ˊ(ˋ)) {
            o_eyo.ˋ(1);
            o_eyo.ˎ(true);
        } else if (i == 4) {
            o_eyo.ˋ(5);
            o_eyo.ˊ(str);
            o_eyo.ˎ(ˋ.getString(exp$f.ˎͺ));
        } else if (i != 0) {
            o_eyo.ˋ(4);
            o_eyo.ˋ(ˋ.getString(exp$f.ˑॱ));
            o_eyo.ॱ(ˋ.getString(exp$f.ͺˏ));
        } else {
            o_eyo.ˋ(5);
            o_eyo.ˊ(str);
            o_eyo.ˎ(ˋ.getString(exp$f.ˎͺ));
        }
        return o_eyo;
    }

    private void ˊ(String str) {
        if (TextUtils.isEmpty(str)) {
            ˋ(ContentManager.getInstant().getContext().getString(exp$f.ـॱ));
            ॱ(ContentManager.getInstant().getContext().getString(exp$f.ͺˎ));
            return;
        }
        ˋ(ContentManager.getInstant().getContext().getString(exp$f.ՙ, new Object[]{str}));
        ॱ(ContentManager.getInstant().getContext().getString(exp$f.ߴ, new Object[]{str}));
    }

    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("type:").append(ॱ()).append(", ");
        stringBuilder.append("showSetting:").append(ˎ()).append(", ");
        stringBuilder.append("supportRetry:").append(ᐝ()).append(", ");
        stringBuilder.append("tips:").append(ˊ());
        return stringBuilder.toString();
    }

    public String ˋ() {
        return this.ˊ;
    }

    public void ॱ(String str) {
        this.ˊ = str;
    }

    public String ˏ() {
        return this.ˎ;
    }

    public void ˎ(String str) {
        this.ˎ = str;
    }

    public int ॱ() {
        return this.ˋ;
    }

    public void ˋ(int i) {
        this.ˋ = i;
    }

    public String ˊ() {
        return this.ˏ;
    }

    public void ˋ(String str) {
        this.ˏ = str;
    }

    public boolean ˎ() {
        return this.ॱ;
    }

    public void ˎ(boolean z) {
        this.ॱ = z;
    }

    public boolean ᐝ() {
        return this.ॱॱ;
    }
}
